home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 September / CHIP 1996 szeptember (CD07).zip / CHIP_CD07.ISO / povray30 / povmsdos.exe / POVMSDOS.ZIP / INCLUDE / CONSTS.INC < prev    next >
Text File  |  1996-04-17  |  2KB  |  84 lines

  1. #ifdef(Consts_Inc_Temp)
  2. // do nothing
  3. #else
  4. #declare Consts_Inc_Temp = version
  5. #version 3.0
  6.  
  7. #ifdef(View_POV_Include_Stack)
  8. #   debug "including consts.inc\n"
  9. #end
  10.  
  11. /*
  12.               Persistence of Vision Raytracer Version 3.0
  13.                  Various constants and alias definitions
  14. */
  15.  
  16. // MAP_TYPE CONSTANTS
  17. #declare Plane_Map    = 0
  18. #declare Sphere_Map   = 1
  19. #declare Cylinder_Map = 2
  20. #declare Torus_Map    = 5
  21.  
  22. // INTERPOLATION TYPE CONSTANTS
  23. #declare Bi           = 2
  24. #declare Norm         = 4
  25.  
  26. // FOG TYPE CONSTANTS
  27. #declare Uniform_Fog = 1
  28. #declare Ground_Fog  = 2
  29.  
  30. // FOCAL BLUR HEXGRID CONSTANTS
  31. #declare Hex_Blur1    = 7
  32. #declare Hex_Blur2    = 19
  33. #declare Hex_Blur3    = 37
  34.  
  35. // INDEX OF REFRACTION CONSTANTS
  36. // Defines a few Index of Refractions for various materials for sodium light.
  37. // Source: College Physics by Arthur L. Kimball, PhD. 4th Edition (1923)
  38. // ---------------------------
  39. #declare Flint_Glass_Ior = 1.71
  40. #declare Crown_Glass_Ior = 1.51
  41. #declare Diamond_Ior     = 2.47
  42. #declare Water_Ior       = 1.33
  43. #declare Air_Ior         = 1.000292
  44.  
  45. // POV-Ray 3.0 NOTE: These are included for backwards compatibility only.
  46. // Use the camera "angle" parameter for version 3.0 and above.
  47. //
  48. // Direction Vectors for various Field of View angles.
  49. // The formula used to calculate these is:  FoV = 0.5 / tan(angle/2)
  50. // Based on the height, (the UP vector), not width or diagonal.
  51. // Useage:  direction <0, 0, FoV_45>
  52. // (You will also need to adjust the location vector if you change FoV and
  53. // want to keep the same visual distance from your scene.)
  54. #declare FoV_15  = 7.595981
  55. #declare FoV_30  = 3.732166
  56. #declare FoV_45  = 2.414293
  57. #declare FoV_60  = 1.732113
  58. #declare FoV_75  = 1.303277
  59. #declare FoV_90  = 1.000046
  60. #declare FoV_105 = 0.767370
  61. #declare FoV_120 = 0.577391
  62. #declare FoV_135 = 0.414254
  63. #declare FoV_150 = 0.267991
  64. #declare FoV_165 = 0.131696
  65.  
  66. // ATMOSPHERE TYPES
  67. #declare ISOTROPIC_SCATTERING         = 1
  68. #declare MIE_HAZY_SCATTERING          = 2
  69. #declare MIE_MURKY_SCATTERING         = 3
  70. #declare RAYLEIGH_SCATTERING          = 4
  71. #declare HENYEY_GREENSTEIN_SCATTERING = 5
  72.  
  73. // BASIC RADIOSITY MODES
  74. // These are used in the "rad_def.inc" file.
  75. #declare Radiosity_Debug   = 1
  76. #declare Radiosity_Fast    = 2
  77. #declare Radiosity_Normal  = 3
  78. #declare Radiosity_2Bounce = 4
  79. #declare Radiosity_Final   = 5
  80.  
  81.  
  82. #version Consts_Inc_Temp
  83. #end
  84.